/* eslint-disable no-unused-vars */

import api from './interceptors'
import { RoleParams, RoleListItem } from './types/common'

enum Api {
  login = '/login/info',
  setRoleStatus = 'xxx',
}

export const login = (params?: RoleParams) => api.get({ url: Api.login, params })
export const setRoleStatus = (id: number, status: string) => api.post<RoleListItem>({ url: Api.setRoleStatus, params: { id, status } })
